package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class Warehouse here.
 * 
 * @author (Jan Skrubbeltrang) 
 * @version (a version number or a date)
 */
public class Warehouse
{
    // instance variables
    private String name;
    private ArrayList<Location> locations;
    /**
     * Constructor for objects of class Warehouse
     */
    public Warehouse(String name)
    {
        this.name = name;
        locations = new ArrayList<Location>();
        // initialise instance variables
    }
    
    public Location addLocation(String rack, String shelf)
    {
        Location l = new Location(shelf, rack, this);
    	locations.add(l);
        return l;
    }
}
